package com.example.handler;

import org.noear.solon.annotation.Component;
import org.noear.solon.annotation.Mapping;
import org.noear.solon.core.handle.Context;
import org.noear.solon.core.handle.Handler;

/**
 * @author xurongbei
 */
@Mapping(value = "/hello")
@Component
public class HelloHandler implements Handler {
    @Override
    public void handle(Context ctx) throws Throwable {
        ctx.output("Hello "+ ctx.paramOrDefault("name","word----"));
    }
}
